<div appBsModal #modal="bs-modal" class="modal fade" [ngClass]="modalExpandOb.className"  tabindex="-1" role="dialog" aria-labelledby="modal"
    aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <div class="modal-header" style="padding:0.5rem">
                <h5 class="modal-title">
                    <span>{{title}}</span>
                </h5>
                <span class="pull-right">
                    <a class="btn btn-smallEx" (click)='modalExpandOb.modalExHandle("small")'>
                        <i class="bi bi-arrows-angle-expand" *ngIf="!modalExpandOb.isSmallEx"></i>
                        <i class="bi bi-arrows-angle-contract" *ngIf="modalExpandOb.isSmallEx"></i>
                    </a>
                    <a class="btn btn-fullscreen" (click)='modalExpandOb.modalExHandle("full")'>
                        <i class="bi bi-arrows-fullscreen" *ngIf="!modalExpandOb.isFullScreen"></i>
                        <i class="bi bi-fullscreen-exit" *ngIf="modalExpandOb.isFullScreen"></i>
                    </a>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')"
                        [disabled]="saving">
                        <i aria-hidden="true" class="bi bi-x"></i>
                    </button>
                </span>
            </div>
            <div class="modal-body"  [busyIf]="loading">
                <div class="form-group">
                    <json-editor [options]="editorOptions" [(data)]="jsonData" #editor></json-editor>
                </div>
                <div class="checkbox-list" *ngIf="dataSynchronous">
                    <label class="checkbox"  for="menuInfoConfigSynchronous">
                        <input id="menuInfoConfigSynchronous" type="checkbox" name="autoSynchronous"
                            [(ngModel)]="data.autoSynchronous">
                        <span></span>
                        {{"AutoSynchronous" | localize}}
                    </label>
                </div>
            </div>
            <div class="modal-footer">
                <button [disabled]="saving" type="button" class="btn btn-default font-weight-bold"
                        (click)="close()">
                    {{"Cancel" | localize}}
                </button>
                <button class="btn btn-primary blue"  [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')" (click)="save()"><i class="fa fa-save"></i>{{"Save" | localize}}</button>
                <button [disabled]="saving" *ngIf="dataSynchronous" type="button"
                  class="btn btn-primary blue" (click)="synchorization()">
                  <i class="bi bi-stickies"></i>{{"ManualSynchorization" |localize}}</button>
            </div>
        </div>
    </div>
</div>